import request from '@/utils/_request'
export  function listMajor(){
    return request({
        url:'/admin/system/dict/data/type/sys_category_value',
        method:'GET',
    })
}
export function getMajor(id){
    return request({
        url:'/admin/system/dict/data/'+id,
        method:'GET'
    })
}
export function updateMajor(data){
    return request({
        url:'/admin/system/dict/data',
        method:'PUT',
        data:data
    })
}
export function addMajor(data){
    return request({
        url:'/admin/system/dict/data',
        method:'POST',
        data:data
    })
}
export function delMajor(ids){
    return request({
        url:'/admin/system/dict/data/'+ids,
        method:'DELETE',
    })
}